package net.tooeye.easymes.common;

import android.content.Context;
import android.content.SharedPreferences;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class BaseActivity extends AppCompatActivity {

    private  String host,token;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        SharedPreferences sp = getSharedPreferences("easy_plus", Context.MODE_PRIVATE);
        token =sp.getString("token","");
        host =sp.getString("host","");

    }
    protected  void hideActionBar(){
        ActionBar bar = getSupportActionBar();
        if (bar != null){
            bar.hide();
        }
    }

    protected String GetHost(){
        return  host;
    }

    protected  String GetToken(){
        return  token;
    }
}
